<#assign prefixName='WHERE'>
<#if (where__and__eq__id??)>
	<#if (where__and__eq__id__value??)>
${prefixName} T.ID = :where__and__eq__id__value
	<#else>
${prefixName} T.ID IS NULL
	</#if>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__endDaTi??)>
	<#if (where__and__eq__endDaTi__value??)>
${prefixName} T.END_DA_TI = :where__and__eq__endDaTi__value
	<#else>
${prefixName} T.END_DA_TI IS NULL
	</#if>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__idTrCo??)>
	<#if (where__and__eq__idTrCo__value??)>
${prefixName} T.ID_TR_CO = :where__and__eq__idTrCo__value
	<#else>
${prefixName} T.ID_TR_CO IS NULL
	</#if>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__nameTrCo??)>
	<#if (where__and__eq__nameTrCo__value??)>
${prefixName} T.NAME_TR_CO = :where__and__eq__nameTrCo__value
	<#else>
${prefixName} T.NAME_TR_CO IS NULL
	</#if>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__name??)>
	<#if (where__and__eq__name__value??)>
${prefixName} T.NAME = :where__and__eq__name__value
	<#else>
${prefixName} T.NAME IS NULL
	</#if>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__codeTrCo??)>
	<#if (where__and__eq__codeTrCo__value??)>
${prefixName} T.CODE_TR_CO = :where__and__eq__codeTrCo__value
	<#else>
${prefixName} T.CODE_TR_CO IS NULL
	</#if>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__entityId??)>
	<#if (where__and__eq__entityId__value??)>
${prefixName} T.ENTITY_ID = :where__and__eq__entityId__value
	<#else>
${prefixName} T.ENTITY_ID IS NULL
	</#if>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__beginDaTi??)>
	<#if (where__and__eq__beginDaTi__value??)>
${prefixName} T.BEGIN_DA_TI = :where__and__eq__beginDaTi__value
	<#else>
${prefixName} T.BEGIN_DA_TI IS NULL
	</#if>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__code??)>
	<#if (where__and__eq__code__value??)>
${prefixName} T.CODE = :where__and__eq__code__value
	<#else>
${prefixName} T.CODE IS NULL
	</#if>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__numberTrCo??)>
	<#if (where__and__eq__numberTrCo__value??)>
${prefixName} T.NUMBER_TR_CO = :where__and__eq__numberTrCo__value
	<#else>
${prefixName} T.NUMBER_TR_CO IS NULL
	</#if>
	<#assign prefixName='AND'>
</#if>
